package com.molichuxing.gateway.bff.permission.entity.request;

import com.molichuxing.framework.dto.ResponseRootDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

@Data
public class AccountCreateVo extends ResponseRootDto {
    private static final long serialVersionUID = 3899565223113587842L;

    @ApiModelProperty(value = " 用户账号（邮箱）", required = true)
    @NotEmpty(message = "用户账号不能为空")
    private String account;

    @ApiModelProperty(value = " 真实姓名", required = true)
    @NotEmpty(message = "真实姓名不能为空")
    private String realName;

    @ApiModelProperty(value = " 是否启用", required = true)
    private int status = 0;

    @ApiModelProperty(value = "用户绑定的角色id")
    private Integer groupId = 0;

    @ApiModelProperty(value = "用户手机号")
    @NotEmpty(message = "联系方式不能为空")
    private String userPhone;

    @ApiModelProperty(value = "智能终端权限(0:没有登录权限，1:有登录权限),不传默认为0")
    private int smartTerminal;
}